<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Sorular Sayfası</title>
        <link href="Tema.css" rel="stylesheet" type="text/css"></link>
    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">
                </div>
                <div id="header">
                </div>
                <div class="page">
                    <div id="page-bgtop">
                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Erişim Noktaları">
                            <ui:include src="HastaMenu.xhtml"/>
                        </p:panel>
                        <div id="content">
                            <p:panel id="panel" header="Hasta Grupları Sayfası">
                                <p:dataTable var="soru" value="#{HastaDenetci.secilenHastalikGrubu.sorular}" id="soruListesi">
                                    <f:facet name="header">  
                                        Sorular
                                    </f:facet>
                                    <p:column headerText="Soru">  
                                        #{soru.tanim}  
                                    </p:column> 
                                    <p:column headerText="Seçenekler">  
                                        <p:selectOneMenu value="#{soru.cevap.no}" required="true">  
                                            <f:selectItem itemLabel="Seçiniz" itemValue="" />  
                                            <f:selectItems value="#{soru.secenekler}" var="cevap" itemLabel="#{cevap.tanim}" itemValue="#{cevap.no}"/>  
                                        </p:selectOneMenu>
                                    </p:column>
                                    <f:facet name="footer">  
                                        <p:commandButton value="Değerlendir" update="panel" ajax="false" actionListener="#{HastaDenetci.cevaplariDegerlendir}"/>  
                                    </f:facet>                                    
                                </p:dataTable>
                                <p:messages/>
                            </p:panel>
                        </div>
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>E-Doktor</p>
                    </div>
                </div>
            </div>
        </h:form>
    </h:body>
</html>